<?php
/**
 *	@name		V认证
 *	@author		Jeffery
 *	@qq			1017756891
 *	@email		1017756891@qq.com
 *	@website	http://www.iweitao.net
**/


require_once "core.php";

if(!defined('IN_ADMINCP')) {
	exit('Access Denied');
}


if($global->_get("op")) {
	$op = $global->_get("op");
	$oid = $global->_get("oid");
	changestatus_authenticate($op,$oid);
	if($op == 'deny') {
		$msg = $lang[34];
	} else { //认证成功，进行积分变更操作
		$msg = $lang[33];
		updatemembercount($oid,array("extcredits$credit" => "$credit_count"));
	}
	notification_add($oid,'post',$msg,array(),$system = 0);
	cpmsg($lang[32],'','succeed');
}
$info = GET_USER_V_INFO(FALSE);
showtableheader();
echo "<tr><td>".$lang[20]."</td><td>".$lang[21]."</td><td>".$lang[22]."</td><td>".$lang[23]."</td><td>".$lang[24]."</td><td>".$lang[25]."</td><td>".$lang[26]."</td><td>".$lang[29]."</td></tr>";
foreach($info as $k => $v) {
	echo "<tr>";
	echo "<td>".$v['uid']."</td>";
	echo "<td>".$v['name']."</td>";
	echo "<td>".$v['phone']."</td>";
	echo "<td>".$v['idcode']."</td>";
	echo "<td>".$v['QQ']."</td>";
	echo "<td>".$v['email']."</td>";
	echo "<td>
		<a target='_blank' href='./source/plugin/authenticate/data/".$v['index']."'>".$lang[27]."</a>
		<a target='_blank' href='./source/plugin/authenticate/data/".$v['bottom']."'>".$lang[28]."</a>
		</td>";
	echo "<td>
		<A href='admin.php?frames=yes&action=plugins&operation=config&do=".$pluginid."&identifier=authenticate&pmod=check&op=agree&oid=".$v['uid']."'>".$lang[30]."</a>|
		<A href='admin.php?frames=yes&action=plugins&operation=config&do=".$pluginid."&identifier=authenticate&pmod=check&op=deny&oid=".$v['uid']."'>".$lang[31]."</a></td>";
	echo "</tr>";
}
showtablefooter();
?>